// import log from '@dfeidao/atom-nodejs/logger/log';
import { IncomingHttpHeaders } from 'http';
import operate from '@dfeidao/atom-nodejs/db/operate';
import { systemid } from '../../atom/config';
interface Message {
	no: string[];
}


export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	// log('Service begin path:e:\7.29考核\kh\src\LiQiuLiang\zj-000005\s001,action_id:' + action_id);

	const { del, exec } = operate(action_id, session_id, systemid);

	del('burst_event', { event_no: { $in: message.no } });
	del('burst_event', { event_no: { $in: message.no } });

	const r = await exec();



	// log('Service end path:e:\7.29考核\kh\src\LiQiuLiang\zj-000005\s001,action_id:' + action_id);
	return r
}
